﻿<Popover OnVisibleChange="OnVisibleChange" Visible="_visible" ContentTemplate="@_content" Title="Title" Trigger="@(new AntDesign.Trigger[] { AntDesign.Trigger.Click})">
  <Button type="primary">Click me</Button>
</Popover>


@code{

    private RenderFragment _content =>
        @<a @onclick="_=>this._visible = false">Close</a>;

    private bool _visible = false;

    private void OnVisibleChange(bool visible)
    {
        _visible = visible;
    }
}